package com.vsd.service;

import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.shopcart.domain.CreditCategory;



/**
 * 
 */
public interface CreditCategoryService {
	
	Collection<CreditCategory> findAllByOrderBySortDesc();
	
	void save(CreditCategory credit);
	
	int updateByPrimaryKeySelective( CreditCategory c);
	
	void deleteById(String id);
	
	CreditCategory findOne(String id);
	
	Page<CreditCategory> findAll(Pageable p);
	
	CreditCategory findByCode(String code);
	
}
